<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<html>
  <head>
    
    <title>book manage</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	
  	<div id="operator">
	<a href="<s:url action="input" namespace="/admin/book"></s:url>" title="添加书籍">添加书籍</a>
	</div>
	<!--/end operator  -->
	
	<s:form  action="index" namespace="/admin/book" method="post">
	<div id="query">
		书名：<s:textfield name="query.query['lk_title_s']"  />
		描述：<s:textfield name="query.query['lk_content_s']"  />
		封面地址：<s:textfield name="query.query['lk_bookface_s']"  />
		<input type="submit" value="查询"/>
	</div>
	</s:form>
	<!--/end page query -->
		
	<div id="pageItems">
		<table id="pageTable">
			<tr>
				<th id="id">序号</th>
				<th>书名</th>
				<th>描述</th>
				<th>封面地址</th>
				<th>行为</th>
			</tr>
			<s:iterator value="page.items">
			<tr>
				<td><s:property value="id"/></td>
				<td><s:property value="title"/></td>
				<td><s:property value="content"/></td>
				<td><s:property value="bookface"/></td>
				<td>
					<!-- 行为  -->
					<a href="
					<s:url action="input" namespace="/admin/book"><s:param name="book.id" value="%{id}" /></s:url>
					">修改书籍</a>
				</td>
			</tr>
			</s:iterator>
		</table>
	</div>
	<!--/end page item -->

	<!-- 通用分页 -->
	<%@include file="\WEB-INF\template\page\pageButton.jsp" %>	
	
	</body>
</html>
